package com.example.organization.service;

import com.example.model.Organization;
import com.example.organization.dao.OrganizationRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrganizationService {
    @Autowired
    private OrganizationRepository organizationRepository;

    public Organization getOrganizationById(int id){
        return organizationRepository.findById(id).get();
    }
}
